.class public Lcom/xingbook/park/c/a/k;
.super Landroid/widget/LinearLayout;


# instance fields
.field private a:Landroid/widget/TextView;

.field private b:Lcom/xingbook/park/b/a;


# direct methods
.method public constructor <init>(Landroid/app/Activity;F)V
    .locals 10
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    const v9, -0x666667

    const/high16 v8, 0x41e0

    const/high16 v4, 0x4000

    const/4 v7, -0x2

    const/4 v6, 0x0

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p0, v6}, Lcom/xingbook/park/c/a/k;->setOrientation(I)V

    const/16 v1, 0x13

    invoke-virtual {p0, v1}, Lcom/xingbook/park/c/a/k;->setGravity(I)V

    new-instance v1, Lcom/xingbook/park/c/a/l;

    invoke-direct {v1, p0, p1}, Lcom/xingbook/park/c/a/l;-><init>(Lcom/xingbook/park/c/a/k;Landroid/app/Activity;)V

    invoke-virtual {p0, v1}, Lcom/xingbook/park/c/a/k;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const/high16 v1, 0x4200

    mul-float/2addr v1, p2

    float-to-int v1, v1

    new-instance v2, Landroid/widget/TextView;

    invoke-direct {v2, v0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v2, v6, v1, v6, v1}, Landroid/widget/TextView;->setPadding(IIII)V

    const/high16 v1, 0x420c

    mul-float/2addr v1, p2

    invoke-virtual {v2, v6, v1}, Landroid/widget/TextView;->setTextSize(IF)V

    const v1, -0xcccccd

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setTextColor(I)V

    const-string v1, "\u7b5b\u9009"

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v7, v7}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/high16 v3, 0x41b8

    mul-float/2addr v3, p2

    float-to-int v3, v3

    iput v3, v1, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0, v2}, Lcom/xingbook/park/c/a/k;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, v0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/c/a/k;->a:Landroid/widget/TextView;

    const/high16 v0, 0x41f0

    mul-float/2addr v0, p2

    float-to-int v1, v0

    const/high16 v0, 0x4150

    mul-float/2addr v0, p2

    float-to-int v2, v0

    const/high16 v0, 0x4260

    mul-float/2addr v0, p2

    mul-float/2addr v0, v4

    const/high16 v3, 0x4040

    div-float/2addr v0, v3

    float-to-int v3, v0

    mul-float v0, v4, p2

    float-to-int v0, v0

    const/4 v4, 0x2

    if-ge v0, v4, :cond_0

    const/4 v0, 0x2

    :cond_0
    sget v4, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v5, 0x10

    if-lt v4, v5, :cond_1

    iget-object v4, p0, Lcom/xingbook/park/c/a/k;->a:Landroid/widget/TextView;

    const v5, 0xffffff

    invoke-static {v0, v9, v3, v5}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v0

    invoke-virtual {v4, v0}, Landroid/widget/TextView;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    iget-object v0, p0, Lcom/xingbook/park/c/a/k;->a:Landroid/widget/TextView;

    invoke-virtual {v0, v1, v2, v1, v2}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/k;->a:Landroid/widget/TextView;

    const v1, -0x99999a

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/k;->a:Landroid/widget/TextView;

    mul-float v1, v8, p2

    invoke-virtual {v0, v6, v1}, Landroid/widget/TextView;->setTextSize(IF)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v7, v7}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    mul-float v1, v8, p2

    float-to-int v1, v1

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    iget-object v1, p0, Lcom/xingbook/park/c/a/k;->a:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/k;->a:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/k;->addView(Landroid/view/View;)V

    return-void

    :cond_1
    iget-object v4, p0, Lcom/xingbook/park/c/a/k;->a:Landroid/widget/TextView;

    const v5, 0xffffff

    invoke-static {v0, v9, v3, v5}, Lcom/xingbook/park/ui/aa;->a(IIII)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v0

    invoke-virtual {v4, v0}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/xingbook/park/c/a/k;)Lcom/xingbook/park/b/a;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/c/a/k;->b:Lcom/xingbook/park/b/a;

    return-object v0
.end method


# virtual methods
.method public a()Z
    .locals 3

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/xingbook/park/c/a/k;->b:Lcom/xingbook/park/b/a;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/park/c/a/k;->b:Lcom/xingbook/park/b/a;

    invoke-virtual {v1}, Lcom/xingbook/park/b/a;->d()I

    move-result v1

    if-nez v1, :cond_1

    :cond_0
    const/16 v1, 0x8

    invoke-virtual {p0, v1}, Lcom/xingbook/park/c/a/k;->setVisibility(I)V

    :goto_0
    return v0

    :cond_1
    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/k;->setVisibility(I)V

    iget-object v1, p0, Lcom/xingbook/park/c/a/k;->b:Lcom/xingbook/park/b/a;

    invoke-virtual {v1}, Lcom/xingbook/park/b/a;->e()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/park/c/a/k;->a:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    :goto_1
    iget-object v2, p0, Lcom/xingbook/park/c/a/k;->a:Landroid/widget/TextView;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_2
    const/4 v0, 0x1

    goto :goto_1
.end method

.method public setData(Lcom/xingbook/park/b/a;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/park/c/a/k;->b:Lcom/xingbook/park/b/a;

    invoke-virtual {p0}, Lcom/xingbook/park/c/a/k;->a()Z

    return-void
.end method
